fromSeconds

public static Timestamp fromSeconds(long seconds)

Creates a Timestamp from the number of seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.

Return

a Timestamp from the number of seconds of UTC time since Unix epoch

Parameters

seconds

the number of seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z

Throws

when the seconds argument is negative